package com.hq.shop.api.order.service;

import com.hq.shop.api.order.model.OrderEntity;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderService
 * @Description 订单服务
 * @Author huangzl
 * @Date 2018/10/30 19:01
 * @Version 1.0
 **/
@Service
public class OrderService {

    /**
     * 查看订单列表
     *
     * @return
     */
    public List<OrderEntity> queryOrderList() {
        OrderEntity orderEntity = new OrderEntity();
        orderEntity.setOrderDate(new Date());
        orderEntity.setOrderId("xxxxxxxxxxx");
        orderEntity.setOrderName("订单名字");
        orderEntity.setPrice(52.3);
        List<OrderEntity> orderEntityList = new ArrayList<>();
        orderEntityList.add(orderEntity);
        return orderEntityList;
    }

}